package com.xunk.scene.domain;

import com.xunk.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.domain
 * @ClassName: EdgeScene
 * @Author: luanzhiwei
 * @Description: 边缘场景表实体类
 * @Date: 2021/6/3 16:55
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@ToString
public class SceneEdge extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 场景ID
     */
    @NotNull(message = "sceneId不能为空", groups = {Add.class, Model.class})
    private Long sceneId;

    /**
     * 边缘场景id
     */
    private Long edgeSceneId;

    /**
     * 网关设备id
     */
    private String deviceSn;


    /**
     * 删除标识,0正常1删除
     */
    private String delFlag;

    /**
     * 点赞/收藏 数量
     */
    private Long tags;

    public interface Add {
        //校验分组，添加
    }

    public interface Model {
        //设置模板
    }

}
